package ubi.quando.App;

import java.util.ArrayList;
import java.util.List;

public class ContactWallet {
	private List<Contact> mContacts = new ArrayList<Contact>();
	private List<EventBase> mEvents = new ArrayList<EventBase>();
	private String mId;
	private String mName;

	public ContactWallet(String id, String name) {
		this(id, new ArrayList<Contact>(), new ArrayList<EventBase>(), name);
	}

	public ContactWallet(String id, List<Contact> contacts, List<EventBase> events, String name) {
		mContacts = contacts;
		mEvents = events;
		mName = name;
		mId = id;
	}

	public List<Contact> getContacts() {
		return mContacts;
	}

	public List<EventBase> getEvents() {
		return mEvents;
	}
	
	public Contact addContact(Contact contact)
	{
		mContacts.add(contact);
		return contact;
	}
	
	public void addEvent(EventBase event)
	{
		mEvents.add(event);
	}

	public String getId() {
		return mId;
	}

	public void setContacts(List<Contact> contacts) {
		mContacts = contacts;
	}

	public void setEvents(List<EventBase> events) {
		mEvents = events;
	}

	public void setId(String id) {
		mId = id;
	}
	
	public String getName() {
		return mName;
	}
}
